#!/usr/bin/env node

var cp=require('child_process');

//异步执行，先打印父进程pid
//cp.spawn('./03-child.js',[],{stdio:['ignore',1,2]});

//同步方法
cp.spawnSync('./03-child.js',[],{stdio:['ignore',1,2]});
console.log('I am father pid',process.pid);
